<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商家管理 － 添加新商品</title>
    <meta name="keywords" content="龙蛙商城">
    <meta name="description" content="龙蛙商城">

    <link rel="shortcut icon" href="/favicon.ico">
    <link href="/web/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/web/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/web/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="/web/css/animate.min.css" rel="stylesheet">
    <link href="/web/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/web/css/plugins/toastr/toastr.min.css" rel="stylesheet">
</head>
<body class="gray-bg" onload="load()">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-md-12">
            <div class="ibox">
                <div class="ibox-content">
                    <form id="ajaxExFrom" class="form-horizontal" role="form">
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-3"></div>
                            <label class="col-sm-2 control-label">选择商家：</label>
                            <div class="col-sm-3">
                                <input  id ="id" type="hidden" th:value="${companyCoupon.id}" >
                                <input  id ="cid" type="hidden" th:value="${companyCoupon.companyId}" >
                                <select style="border-radius: 5px" class="form-control" id="companyId" name="companyId">
                                </select>
                            </div>
                            <div class="col-sm-4"></div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-3"></div>
                            <label class="col-sm-2 control-label">选择优惠券种类：</label>
                            <input  id ="couponType" type="hidden" th:value="${companyCoupon.couponType}" >
                            <div class="col-sm-3">
                                <select style="border-radius: 5px" class="form-control" id="coupon_type" name="companyId">
                                    <option value="">全部分类</option>
                                    <option value="0">满减券</option>
                                    <option value="2">立减券</option>
                                </select>
                            </div>
                            <div class="col-sm-4"></div>
                        </div>
                        <div class="row sj">
                            <div class="form-group">
                                <div class="col-sm-3"></div>
                                <label class="col-sm-2 control-label">选择商品：</label>
                                <div class="col-sm-3">
                                    <input  id ="goodsIds" type="hidden" th:value="${companyCoupon.goodsId}" >
                                    <select style="border-radius: 5px" class="form-control" id="goodsId" name="goodsId">
                                    </select>
                                </div>
                                <div class="col-sm-4"></div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-3"></div>
                                <label class="col-sm-2 control-label">优惠券折扣价格：</label>
                                <div class="input-group col-sm-3">
                                    <input id="price" class="form-control" th:value="${companyCoupon.price}" type="number" style="border-radius: 5px"/>
                                    <span class="input-group-addon">元</span>
                                </div>
                                <div class="col-sm-4"></div>
                            </div>
                        </div>
                        <div class="row bl">
                            <div class="form-group">
                                <div class="col-sm-3"></div>
                                <label class="col-sm-2 control-label">优惠券折扣价格：</label>
                                <div class="input-group col-sm-3">
                                    <span class="input-group-addon">满</span>
                                    <input type="number" id="reach1" class="form-control" th:value="${companyCoupon.reach1}">
                                    <span class="input-group-addon">减</span>
                                    <input type="number" id="score1" class="form-control" th:value="${companyCoupon.score1}">
                                </div>
                                <div class="col-sm-4"></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-3"></div>
                            <label class="col-sm-2 control-label">优惠券起始时间：</label>
                            <input  id ="couponTime" type="hidden" th:value="${companyCoupon.couponTime}" >
                            <input  id ="couponEndtime" type="hidden" th:value="${companyCoupon.couponEndtime}" >
                            <div class="col-sm-3">
                                <div class="input-daterange input-group datepicker">
                                    <input type="text" class="input-sm form-control" id="beginDateOne"/>
                                    <span class="input-group-addon">至</span>
                                    <input type="text" class="input-sm form-control" id="endDateOne"/>
                                </div>
                            </div>
                            <div class="col-sm-4"></div>
                        </div>
                        <div class="form-group" style="padding: 20px">
                            <div class="col-sm-3"></div>
                            <label class="col-sm-2 control-label">备注</label>
                            <div class="col-sm-3">
                                <input id="remark" class="form-control" th:value="${companyCoupon.remark}" type="text" style="border-radius: 5px" value="">
                            </div>
                            <div class="col-sm-4"></div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-5"></div>
                            <button type="button" id="submitCreate" class="btn btn-primary col-sm-2">保存</button>
                            <div class="col-sm-5"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/web/js/jquery.min.js?v=2.1.4"></script>
<script src="/web/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/web/js/content.min.js?v=1.0.0"></script>
<script src="/web/js/plugins/validate/jquery.validate.min.js"></script>
<script src="/web/js/plugins/validate/messages_zh.min.js"></script>
<script src="/web/js/plugins/toastr/toastr.min.js"></script>
<script src="/web/js/self/commons.js"></script>
<script src="/web/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="/web/js/self/admin_coupon_update.js?v=1.0"></script>
</body>
</html>
